package com.artpri.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ShopkeeperInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "shopkeeper_info", catalog = "jpw")
public class ShopkeeperInfo implements java.io.Serializable {

	// Fields

	private Integer shopkeeperNum;
	private Integer userNum;
	private String skName;
	private String skPortrait;
	private Timestamp createTime;

	// Constructors

	/** default constructor */
	public ShopkeeperInfo() {
	}

	/** minimal constructor */
	public ShopkeeperInfo(Integer userNum, String skName, Timestamp createTime) {
		this.userNum = userNum;
		this.skName = skName;
		this.createTime = createTime;
	}

	/** full constructor */
	public ShopkeeperInfo(Integer userNum, String skName, String skPortrait,
			Timestamp createTime) {
		this.userNum = userNum;
		this.skName = skName;
		this.skPortrait = skPortrait;
		this.createTime = createTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "shopkeeper_num", unique = true, nullable = false)
	public Integer getShopkeeperNum() {
		return this.shopkeeperNum;
	}

	public void setShopkeeperNum(Integer shopkeeperNum) {
		this.shopkeeperNum = shopkeeperNum;
	}

	@Column(name = "user_num", nullable = false)
	public Integer getUserNum() {
		return this.userNum;
	}

	public void setUserNum(Integer userNum) {
		this.userNum = userNum;
	}

	@Column(name = "sk_name", nullable = false, length = 50)
	public String getSkName() {
		return this.skName;
	}

	public void setSkName(String skName) {
		this.skName = skName;
	}

	@Column(name = "sk_portrait")
	public String getSkPortrait() {
		return this.skPortrait;
	}

	public void setSkPortrait(String skPortrait) {
		this.skPortrait = skPortrait;
	}

	@Column(name = "create_time", nullable = false, length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

}